#!/bin/bash

# 创建或修改Docker配置文件
mkdir -p /etc/docker
cat > /etc/docker/daemon.json <<EOF
{
  "registry-mirrors": [
    "https://registry.docker-cn.com",
    "https://hub-mirror.c.163.com",
    "https://mirror.baidubce.com"
  ]
}
EOF

# 重启Docker服务
systemctl daemon-reload
systemctl restart docker

echo "Docker镜像源已配置为国内源，请重新运行部署脚本"
